const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const activitySchema = Schema({
    //省
    province: {
        type: String,
        required: true
    },
    //时间
    timer:{
        type:Date,
        default:Date.now()
    },
    //市
    city: {
        type: String,
        
    },
    //区
    area: {
        type: String,
       
    },
    //年份
  
    year: {
        type: Number,
        default:new Date(Date.now()).getFullYear()
    },
    //月份
    month: {
        type: Number,
        default:new Date(Date.now()).getMonth()+1
    },
    //活跃度
    active_value: {
        type: Number,
        default:5
    },
   
}, { versionKey: false })

module.exports = mongoose.model("activity", activitySchema)